CustomerSeeder.run   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
1
import { Seeder } from '@concepta/typeorm-seeding';
2
import { CustomerFactory } from '../Factories/CustomerFactory';
3
import { Customer } from 'src/Domain/Customer/Customer.entity';
4
5
export class CustomerSeeder extends Seeder {
6
  async run() {
7
    const customerFactory = this.factory(CustomerFactory);
8
    customerFactory.save(new Customer('Aperture Science'));
9
  }
10
}
11